﻿using LiteNetLib.Utils;
using Script.UiSystem;
using UnityEngine;

namespace Script.NetSystem.Services.RoomAndBattle.BattleService.Handler
{
    public class SetHp : IBattleHandler
    {
        public void Handler(BattleClient battleClient, NetDataReader reader)
        {
            int id = reader.GetInt();
            float hp = reader.GetFloat();
            Debug.Log("受伤" + hp);
            battleClient.BattleManager.playerManager.ChangePlayerHp(id, hp);
        }
    }
}